var pos=0,count=0;
var u=location.href;
while(count<4){
	pos=u.indexOf('/',pos+1);
	count++;}
u=location.href.substr(0,pos)+"/";
document.write('<style type=text/css>');
document.write('.sub_image { background: url('+u+'/theme/blue/submit.gif);BORDER-TOP-WIDTH:0px; background-position:0px 0px;BORDER-LEFT-WIDTH:0px;border-bottom-width:0px;width:75px;color:#464646;line-height:17px;border-right-width:0px;font-size: 12px;color: #FFFFFF;	text-decoration: none;');

document.write('}');
document.write('</style>');


function paneltitle(){
	var t=document.getElementById("paneltitle").innerHTML;
	document.getElementById("paneltitle").innerHTML="";
	document.getElementById("paneltitle").style.display='none';
	return t;
}

function panelbody(m){
	var h=document.getElementById("panelbody").innerHTML;
	var t='';
	t+='<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"><tr><td height="11"></td></tr><tr><td><table width="96%" border="0" cellspacing="0" cellpadding="0" align="center"><tr>';
	t+='<td width="18"><img src="'+u+'/theme/blue/gary_main_r2_c2.gif" alt="" width="18" height="28" border="0"></td>';
	t+='<td width="60%" background="'+u+'/theme/blue/gary_main_r2_c5.jpg" class="text_12 text_white">&nbsp;'+m+'&nbsp;</td>';
	t+='<td width="46"><img src="'+u+'/theme/blue/gary_main_r2_c7.gif" alt="" width="46" height="28" border="0"></td>';
	t+='<td width="50%" background="'+u+'/theme/blue/gary_main_r2_c9.gif"></td>';
	t+='<td width="21"><img src="'+u+'/theme/blue/gary_main_r2_c11.gif" alt="" width="21" height="28" border="0"></td></tr>';
	t+='<tr><td colspan="4"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>';
	t+='<td width="2" background="'+u+'/theme/blue/gary_main_r3_c2.jpg"></td><td height="17" background="'+u+'/theme/blue/gary_main_r3_c9.jpg">';
	t+='<img src="'+u+'/theme/blue/spacer.gif" width="1" height="1" /></td></tr></table>';
	t+='</td><td height="17"><img name="gary_main_r3_c11" src="'+u+'/theme/blue/gary_main_r3_c11.jpg" width="21" height="17" border="0" id="gary_main_r3_c11" alt="" /></td>';
	t+='</tr><tr><td height="17" colspan="5"><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>';
	t+='<td background="'+u+'/theme/blue/gary_main_r3_c2.jpg" width="2"></td>';
	t+='<td height="280" valign="top"  align="center" class="size_1" bgcolor="#dbe0e4">';
	t+=h;
	t+='</td><td background="'+u+'/theme/blue/gary_main_r5_c13.jpg" width="5"><img src="'+u+'/theme/blue/spacer.gif"></td>';
	t+='</tr></table></td></tr><tr><td height="20"><img src="'+u+'/theme/blue/gary_main_r7_c2_1.jpg" width="18" height="20"></td>';
	t+='<td colspan="3" background="'+u+'/theme/blue/gary_main_r7_c9_1.jpg"></td><td height="17"><img src="'+u+'/theme/blue/gary_main_r7_c11_1.jpg" width="21" height="20"></td></tr></table></td></tr></table>';

	document.getElementById("panelbody").innerHTML=t;
}

function querytitle(){
	var t=document.getElementById("querytitle").innerHTML;
	document.getElementById("querytitle").innerHTML="";
	document.getElementById("querytitle").style.display='none';
	return t;
}

function querybody(m){
	var h=document.getElementById("querybody").innerHTML;
	var t='';
	t+='<fieldset style="width:98%; border-width :thin;">';
	t+='<legend class="legend">'+m+'</legend>';
	t+='<table border="0" cellspacing="0" cellpadding="0"><tr><td height="2"></td></tr></table>';
	t+=h;
	t+='<table border="0" cellspacing="0" cellpadding="0"><tr><td height="2"></td></tr></table>';
	t+='</fieldset>';
	document.getElementById("querybody").innerHTML=t;
}
function resulttitle(){
	var t=document.getElementById("resulttitle").innerHTML;
	document.getElementById("resulttitle").innerHTML="";
	document.getElementById("resulttitle").style.display='none';
	return t;
}
function resultbody(m){
	var h=document.getElementById("resultbody").innerHTML;
	var t='';	
	t+='<table border="0" cellspacing="0" cellpadding="0"><tr><td height="3"></td></tr></table>';
	t+='<fieldset style="width:98%; border-width :thin;">';
	t+='<legend class="legend">'+m+'</legend>';
	t+='<table border="0" cellspacing="0" cellpadding="0"><tr><td height="2"></td></tr></table>';
	t+=h;
	t+='<table border="0" cellspacing="0" cellpadding="0"><tr><td height="2"></td></tr></table>';
	t+='</fieldset>';
	document.getElementById("resultbody").innerHTML=t;
}

function htmlshow(){
	if(document.getElementById("querybody")&&document.getElementById("querytitle")){
		querybody(querytitle());
	}
	if(document.getElementById("resultbody")&&document.getElementById("resulttitle")){
		resultbody(resulttitle());
	}
	if(document.getElementById("panelbody")&&document.getElementById("paneltitle")){
		panelbody(paneltitle());
	}
	if(document.getElementById("panelbody")&&document.getElementById("paneltitle")){
		document.getElementById("panelbody").style.display="block";
	}
	try{
		alert(errors);
	}catch(e){}
}
if(document.all){
	window.attachEvent('onload',htmlshow);
}else{
	window.addEventListener('load',htmlshow,false);
}

function getlocation(){
	if(location.pathname.substr(0,1)=="/"){
		return "/"+location.pathname.split("/")[1]+"/";
	}else{
		return "/"+location.pathname.split("/")[0]+"/";
	}
}

function file_title(title){
var s="";
s+='<table width="768" border="0" align="center" cellpadding="0" cellspacing="0">';
s+='<tr><td><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>';
s+='<td width="9" height="30"><img src="'+u+'/theme/blue/gary_r2_c2.gif" width="9" height="30"></td>';
s+='<td width="250" background="'+u+'/theme/blue/gary_r2_c6.gif" class="text_14 text_white text_bold">&nbsp;&nbsp;'+title+'&nbsp;</td>';
s+='<td width="45"><img src="'+u+'/theme/blue/gary_r2_c8.gif" width="45" height="30"></td>';
s+='<td background="'+u+'/theme/blue/gary_r2_c9.jpg">&nbsp;</td>';
s+='<td width="2"><img src="'+u+'/theme/blue/gary_r2_c11.jpg" width="2" height="30"></td>';
s+='</tr></table></td></tr><tr><td><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>';
s+='<td width="2" background="'+u+'/theme/blue/gary_r3_c2.jpg"></td><td align="center" valign="top" bgcolor="E3E2DE">';
s+='<table width="764" border="0" cellspacing="0" cellpadding="0"><tr><td class="size_1">';
document.write(s);
}

function file_down(){
var s="";
s+='</td></tr></table></td><td width="2" background="'+u+'/theme/blue/gary_r3_c11.jpg"></td>';
s+='</tr></table></td></tr><tr>';
s+='<td><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>';
s+='<td width="2" height="2"><img src="'+u+'/theme/blue/gary_r5_c2.jpg" width="2" height="2"></td>';
s+='<td height="2" background="'+u+'/theme/blue/gary_r5_c3.jpg"><img src="'+u+'/theme/blue/spacer.gif" width="1" height="1"></td>';
s+='<td width="2" height="2"><img src="'+u+'/theme/blue/gary_r5_c11.jpg" width="2" height="2"></td></tr></table></td></tr></table>';
document.write(s);
}

function ts_title(title){
var s="";
s+='<table border="0" cellspacing="0" cellpadding="0"><tr><td height="5"></td></tr></table>';
s+='<fieldset style="width:98%; border-width :thin;">';
s+='<legend class="legend">'+title+'</legend>';
s+='<table border="0" cellspacing="0" cellpadding="0"><tr><td height="2"></td></tr></table>';
document.write(s);
}

function ts_mid(title){
var s="";
s+='<table border="0" cellspacing="0" cellpadding="0"><tr><td height="2"></td></tr></table>';
s+='</fieldset>';
s+='<table border="0" cellspacing="0" cellpadding="0"><tr><td height="2"></td></tr></table>';
s+='<fieldset style="width:98%; border-width :thin;">';
s+='<legend class="legend">'+title+'</legend>';
s+='<table border="0" cellspacing="0" cellpadding="0"><tr><td height="2"></td></tr></table>';
document.write(s);
}

function ts_down(){
var s="";
s+='<table border="0" cellspacing="0" cellpadding="0"><tr><td height="2"></td></tr></table>';
s+='</fieldset>';
document.write(s);
}

function mouse_over(obj){
obj.style.background='url('+u+'/theme/blue/vio_main_r3_c5.jpg)';
}

function mouse_out(obj){ 1
obj.style.background='url('+u+'/theme/blue/vio_main_r2_c1.jpg)';
}
function vio_title(m){
	var t="";
		t+='<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">';
		t+='<tr><td height="30" background="'+u+'/theme/blue/vio_main_r3_c6.jpg"  valign="top">';	
		t+='<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0"><tr><td width="20">&nbsp;</td>';
		t+='<td width="156" background="'+u+'/theme/blue/vio_main_r3_c9.jpg" class="text_12" align="center" valign="bottom">&nbsp;'+m+'&nbsp;</td>';
		t+='<td class="text_12 table_val ">';
		document.write(t);
	}

	function vio_seach(){
	var t="";
		t+='<td class="text_12" align="right">&nbsp;&nbsp;</td>';
		t+='</tr></table></td></tr><tr><td  bgcolor="#ffffff" align="center" valign="top">';
		document.write(t);
	}

	function vio_down(){
	var t="";	
		t+='</td></tr></table>';
		document.write(t);
	}
	